﻿using System.Runtime.Serialization;

namespace FuiouPay.Models.Request {
    public class MicropayRequestInfo : PayRequestInfo {
        /// <summary>
        /// 必填，订单类型: 
        /// ALIPAY(统一下单、条码支付、服务窗支付)
        /// WECHAT(统一下单、条码支付、公众号支付、小程序)
        /// UNIONPAY
        /// BESTPAY(翼支付)
        /// </summary>
        [DataMember(Name = "order_type")]
        public string OrderType { get; set; }

        /// <summary>
        /// 必填，扫码支付授权码，设备读取用户的条码或者二维码信息
        /// </summary>
        [DataMember(Name = "auth_code")]
        public string AuthCode { get; set; }

        /// <summary>
        /// 支付场景,默认1；
        /// 1: 条码支付
        /// 2: 声波支付
        /// 3: 刷脸支付
        /// </summary>
        [DataMember(Name = "sence")]
        public string Sence { get; set; } = "1";

        /// <summary>
        /// 子商户公众号id
        /// </summary>
        [DataMember(Name = "reserved_sub_appid")]
        public string ReservedSubAppid { get; set; }

        /// <summary>
        /// 限制支付
        /// no_credit:不能使用信用卡
        /// credit_group：不能使用花呗以及信用卡
        /// </summary>
        [DataMember(Name = "reserved_limit_pay")]
        public string ReservedLimitPay { get; set; }
    }
}
